/**
 * 
 */
package cn.sundat.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.transaction.annotation.Transactional;

import cn.sundat.dao.SchoolDao;
import cn.sundat.model.PageBean;
import cn.sundat.model.School;
import cn.sundat.model.School_link;

/**
 * @author XIN
 *
 */
@Transactional
public class SchoolServiceImpl implements SchoolService {

	@Resource(name="schoolDao")
	private SchoolDao schoolDao;

	@Override
	public void addSchool_link(School_link school_link) {
		// TODO Auto-generated method stub
		schoolDao.addSchool_link(school_link);
		
	}

	@Override
	public void delSchool_link(School_link school_link) {
		// TODO Auto-generated method stub
		schoolDao.delSchool_link(school_link);
		
	}

	@Override
	public void editSchool_link(School_link school_link) {
		// TODO Auto-generated method stub
		schoolDao.editSchool_link(school_link);
		
	}

	@Override
	public List<School> findAllSchool() {
		// TODO Auto-generated method stub
		return schoolDao.findAllSchool();
	}

	@Override
	public void addSchool(School school) {
		// TODO Auto-generated method stub
		schoolDao.addSchool(school);
	}

	@Override
	public void delSchool(School school) {
		// TODO Auto-generated method stub
		schoolDao.delSchool(school);
	}

	@Override
	public void editSchool(School school) {
		// TODO Auto-generated method stub
		schoolDao.editSchool(school);
	}

	@Override
	public School findSchoolById(String id) {
		// TODO Auto-generated method stub
		return schoolDao.findSchoolById(id);
	}
	@Override
	public List<School_link> findSchool_linkById(String id) {
		// TODO Auto-generated method stub
		return schoolDao.findSchool_linkById(id);
	}

	@Override
	public List<School> findByKey(String key) {
		// TODO Auto-generated method stub
		return schoolDao.findByKey(key);
	}

	@Override
	public PageBean<School> findByPageByKey(Integer currPage, Integer pageSize, String key) {
		// TODO Auto-generated method stub
		return schoolDao.findByPageByKey(currPage, pageSize, key);
	}

	@Override
	public School_link findSchool_linkBySchlink_id(String schlink_id) {
		// TODO Auto-generated method stub
		return schoolDao.findSchool_linkBySchlink_id(schlink_id);
	}

}
